package com.athletesPractice;

public class AthletesMain {
    public static void main(String[] args) {
        //篮球运动员
        BasketballAthletes baskAth = new BasketballAthletes();
        baskAth.setName("姚明");
        baskAth.setAge(45);
        System.out.println(baskAth.getName());
        System.out.println(baskAth.getAge());
        baskAth.basketball();
        baskAth.eat();
        baskAth.study();

        System.out.println("----------------------------");
        //篮球教练
        BasketballCoach baskCoa = new BasketballCoach();
        baskCoa.setName("张三");
        baskCoa.setAge(55);
        System.out.println(baskCoa.getName());
        System.out.println(baskCoa.getAge());
        baskCoa.teach();
        baskCoa.eat();

        System.out.println("----------------------------");
        //乒乓球运动员
        PingpongAthletes pingAth = new PingpongAthletes();
        pingAth.setName("马龙");
        pingAth.setAge(34);
        System.out.println(pingAth.getName());
        System.out.println(pingAth.getAge());
        pingAth.pingpong();
        pingAth.eat();
        pingAth.study();

        System.out.println("----------------------------");

        //乒乓球教练

        PingpongCoach pingCoa = new PingpongCoach();
        pingCoa.setName("李四");
        pingCoa.setAge(50);
        System.out.println(pingCoa.getName());
        System.out.println(pingCoa.getAge());
        pingCoa.teach();
        pingCoa.eat();
    }
}
